<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<%
	Integer count = (Integer) application.getAttribute("count");
	if (count == null)
		count = 0;
	String sessionid1 = (String) application.getAttribute("sessionid");
	String sessionid2;
	if (sessionid1 == null) {
		sessionid1 = session.getId();
		application.setAttribute("sessionid", sessionid1);
		sessionid2 = session.getId();
	} else {
		sessionid2 = session.getId();
	}

	System.out.println(sessionid1 + "  " + sessionid2);
	if (!sessionid1.equals(sessionid2)) {	
			count++;
			application.setAttribute("count", count);
			application.setAttribute("sessionid", sessionid2);
	
	} 
%>
<li>
	
	<font color="white">您是本网站的第<%=count%>位访客</font>
	
	
</li>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<li id="webjx" style="color: white;">
	<script>
						setInterval("webjx.innerHTML=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());",1000);
					</script>
</li>